package cn.tedu.tea.mapper;

import cn.tedu.tea.domain.OrderAddress;
import cn.tedu.tea.domain.vo.OrderAddressListVO;
import cn.tedu.tea.domain.vo.OrderAddressStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderAddressMapper {
    int insert(OrderAddress orderAddress);
    int deleteById(Integer id);
    int deleteByIds(Integer[] ids);
    int update(OrderAddress orderAddress);

    int countByOrderNo(String orderNo);
    int countByOrderNoAndNotId(String orderNo, Integer id);

    OrderAddressStandardVO getStandardById(Integer id);
    List<OrderAddressListVO> list();

}
